<html>
<head>
	<title>Title</title>
	<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
	<script>

	function a() {
		var averyverylongname = 1;
		var averyverylongname2 = "*";
		var alsoaveryverylongname = averyverylongname2.split("*");
		for (var iiiiiii=0;iiiiiii<averyverylongname2.length;iiiiiii++) {
			averyverylongname++;
			averyverylongname+=alsoaveryverylongname.length;
		}
		return averyverylongname;
	}

	function b() {
		var a = 1;
		var a2 = "*";
		var b = a2.split("*");
		for (var i=0;i<a2.length;i++) {
			a++;
			a+=b.length;
		}
		return a;
	}

	function test() {
		for(var c=0;c<5;c++) {
			var k
			k=0;
			var t1=new Date();
			for(var i=0;i<500000;i++) {
				k+=a();
			}
			var time1=(new Date()-t1);

			k=0;
			var t1=new Date();
			for(var i=0;i<500000;i++) {
				k+=b();
			}
			var time2=(new Date()-t1);
			document.getElementById("result").innerHTML+=time1+" : "+time2+"</br>"
		}
	}
	</script>
</head>
<body onload="test()">
	<p>Array.concat() : Array.slice(0)</p>
	<span id="result">
	</span>
</body>

</html>
